{% extends "site_base.html" %}

{% load i18n %}
{% load bootstrap_tags %}

{% block head_title %}{% trans "Choose a Username" %}{% endblock %}

{% block body %}
    <h1>{% trans "Choose a Username" %}</h1>
    
    {% if form.errors %}
        <p class="error">{% trans "Please correct the errors below:" %}</p>
    {% endif %}
    
    <p>{% blocktrans %}Now that you have logged in with your OpenID, we need you to choose a username for this site.{% endblocktrans %}</p>
    
    <form method="post" action="">
        {% csrf_token %}
        <fieldset>
            {{ form|as_bootstrap }}
        </fieldset>
        <div class="actions">
            <button type="submit" class="primary btn">{% trans "Sign Up" %}</button>
        </div>
    </form>
    
    {% url acct_login_openid as acct_login_openid_url %}
    {% url terms as terms_url %}
    {% url privacy as privacy_url %}
    <p>{% blocktrans %}<strong>Already have an account?</strong> <a href="{{ acct_login_openid_url }}">Log in</a> to associate your OpenID with your existing account.{% endblocktrans %}</p>
    <p>{% blocktrans %}By clicking &quot;Sign Up&quot;, you are indicating that you have read and agree to the <a href="{{ terms_url }}">Terms of Use</a> and <a href="{{ privacy_url }}">Privacy Policy</a>.{% endblocktrans %}</p>
    <p>{% blocktrans %}If you have any trouble creating your account, contact us at <a href="mailto:{{ CONTACT_EMAIL }}">{{ CONTACT_EMAIL }}</a>.{% endblocktrans %}</p>
{% endblock %}